package com.hxd.mall.injector.modules

import com.hxd.mall.injector.scope.ActivityScope
import com.hxd.mall.module.account.bindphone.BindPhoneActivity
import com.hxd.mall.module.account.register.BindPhonePresenter
import com.hxd.mall.module.account.register.IBindPhonePresenter
import com.hxd.mall.module.account.register.IBindPhoneView
import dagger.Binds
import dagger.Module

/**
 * @author zhaoyong
 * @description:
 * @date :2019-10-15 14:02
 */
@Module
abstract class BindPhoneModule {
    @Binds
    internal abstract fun bindView(activity: BindPhoneActivity): IBindPhoneView

    @ActivityScope
    @Binds
    abstract fun provideMainPresenter(presenter: BindPhonePresenter): IBindPhonePresenter
}